package com.tansuo365.test1.service.otherservice.impl;

import com.tansuo365.test1.bean.otherbean.Kufang;
import com.tansuo365.test1.mapper.othermapper.KufangMapper;
import com.tansuo365.test1.service.otherservice.KufangService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class KufangServiceImpl implements KufangService {
    @Resource
    private KufangMapper kufangMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return kufangMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteBatchByPKArr(Integer[] ids) {
        return kufangMapper.deleteBatchByPKArr(ids);
    }

    @Override
    public int insert(Kufang kufang) {
        return kufangMapper.insert(kufang);
    }

    @Override
    public int insertSelective(Kufang kufang) {
        return kufangMapper.insertSelective(kufang);
    }

    @Override
    public Kufang selectByPrimaryKey(Integer id) {
        return kufangMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Kufang> findByParentId(int p_id) {
        return kufangMapper.findByParentId(p_id);
    }

    @Override
    public int updateByPrimaryKeySelective(Kufang kufang) {
        return kufangMapper.updateByPrimaryKeySelective(kufang);
    }

    @Override
    public int updateByPrimaryKey(Kufang kufang) {
        return kufangMapper.updateByPrimaryKey(kufang);
    }
}
